<%-- 
    Document   : ListIPs
    Created on : Oct 18, 2011, 10:47:52 PM
    Author     : Tunp
--%>

<%@ include file="/WEB-INF/jsp/include.jsp" %> 
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>list IP</title>
    </head>
    <body>
        <h1>IP list:</h1>
        <form:form method="POST" >
        <select name="search_col">
                <option value="IP">IP Address</option>
        </select>
        <input type="text" id="search" name="search_text" maxlength="100"/>
        <input type="submit" value="Search"></input>
        <table style="border: solid chocolate">
            <tr>
                <th>
                    <b>Id </b>
                </th>
                <th>
                    <b>IP </b>
                </th>
                <th>
                    <b>City</b>
                </th>
                <th>
                    <b>Country</b>
                </th>
            </tr>
            <c:forEach var="ip" items="${listIP}" >
                <tr>
                    <td>
                        <c:out value="${ip.ipId}"></c:out>
                    </td>
                    <td>
                        <c:out value="${ip.ip}"></c:out>
                    </td>
                    <td>
                        <c:out value="${ip.cities.cityName}"></c:out>
                    </td>
                    <td>
                        <c:out value="${ip.cities.countries.countryName}"></c:out>
                    </td>
                </tr>
                </option>
            </c:forEach>
                
        </table>
        <a href="index.htm"><b> Back to index </b> </a>
        </form:form>
    </body>
</html>
